@echo off
setlocal enabledelayedexpansion
set batPath=%~dp0
set "x=0"

set list[0]=%batPath%puffer-parent

set list[1]=%batPath%puffer-starter
set list[2]=%batPath%puffer-starter-db
set list[3]=%batPath%puffer-starter-template
set list[4]=%batPath%puffer-starter-generate
set list[5]=%batPath%puffer-starter-cache

echo ===============================START=======================================
:SymLoop
if defined list[%x%] (
   set /a "x+=1"
   GOTO :SymLoop
)

set /a "x-=1"

for /l %%n in (0,1,%x%) do (
cd /d !list[%%n]!
call mvn clean install org.apache.maven.plugins:maven-deploy-plugin:2.8:deploy -DskipTests
)
pause
